package com.ruoyi.system.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("b_product")
@NoArgsConstructor
@AllArgsConstructor
public class Product {
    @TableId(type = IdType.AUTO)
    private Integer id;

    //分类id
    private Integer categoryId;

    private String categoryName;
    //价格
    private BigDecimal price;
    //产品简介
    private String summary;
    //产品名称
    private String productName;
    //产品图片
    private String productImg;
    //品牌
    private String brand;
    //规格
    private String specification;
    //使用方法
    private String applicationMethod;
    //产品性能
    private String property;
    //保质期
    private String expirationDate;
    //适用对象
    private String suitableObject;
    //剂型
    private String dosage;
    //毒性
    private String virulence;
    //状态 0上架 1下架
    private String status;
    //删除状态 0正常显示 1删除
    private String removeStatus;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;
    //删除时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date removeTime;
    //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date soldTime;
}
